import http from "../axios";

//user-act-biz-web/api/queryActivityTaskAggregate
export const getActivityTaskInfo = (params: {pin?: string, activityId?: string}): Promise<any> => {
    return http.post("/api/user-act-biz-web/api/queryActivityTaskAggregate", params);
}
// 这是领取任务接口
// http://localhost:8083/user-act-biz-web/api/receiveTask  {
//  "pin": "小布--丁",
//  "tpId": "233060171",
//  "receiveMode": "PASSIVE"
// }
export const receiveTask = (params: {pin?: string, tpId?: string, receiveMode?: string}): Promise<any> => {
    return http.post("/api/user-act-biz-web/api/receiveTask", params);
}

// 这是完成任务接口  rid  是 taskRecordList 里面对象的 rid
// http://localhost:8083/user-act-biz-web/api/completeTask  入参 {
//  "pin": "小布--丁",
//  "rid": "917233865"
// }
export const completeTask = (params: {pin?: string, rid?: string}): Promise<any> => {
    return http.post("/api/user-act-biz-web/api/completeTask", params);
}

// http://localhost:8083/user-act-biz-web/api/selectPrizeRecordList 入参 {
//   "pin": "小布--丁",
//   "businessLine": "ACT_BT_NEW_USER_TASK"
// }
export const selectPrizeRecordList = (params: {pin?: string, businessLine?: string}): Promise<any> => {
    return http.post("/api/user-act-biz-web/api/selectPrizeRecordList", params);
}

